/**
 * ARKA Player 2.0
 *
 * Script de lancement du player
 * - configure les palettes à afficher
 * - permet de personaliser les actions sur les clics des zones et étages
 *
 */
var lotsByType = false;
//var player;
$(document).ready( function(){
    player = initPlayer({target: '.arka-player'});
    paletteControls = new PaletteControls (player, { name: 'controls'});
    paletteEtages = new PaletteEtages(player, { name: 'etages'});
    paletteToolTip = new PaletteToolTip(player, { name: 'info'});
    paletteLoading = new MiniLoading(player, { name: 'loading'});
    paletteLegends = new PaletteLegends(player, {name: 'legendes'});

    // à commenter si les médias des lots sont disponibles
    paletteToolTip.goTo = function() {};
    if (navigator.userAgent.indexOf("Trident/5") === -1 && !player.isTouchDevice()) {
        player.setStatusTexture(4, 'arka-player/img/texture2.png', .002);
    }

    $(window).resize(function() {
        if( player !== undefined && player.isSceneReady() && player.getDrawMode() !== 'flash'){
            var size = resizePlayerWidthContainer(player.getDom());
            player.resize(size.width, size.height);
        }
    });
});

